import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'

const publicRoutes: Array<RouteRecordRaw> = [
  {
    path: '/login',
    component: () =>
      import(/* webpackChunkName: "login" */ '@/views/login/index.vue'),
  },
  // {
  //   path: '/',
  //   component: layout,
  //   redirect: '/profile',
  //   children: [
  //     {
  //       path: '/profile',
  //       name: 'profile',
  //       component: () =>
  //         import(/* webpackChunkName: "profile" */ '@/views/profile/index'),
  //       meta: {
  //         title: 'profile',
  //         icon: 'el-icon-user',
  //       },
  //     },
  //     {
  //       path: '/404',
  //       name: '404',
  //       component: () =>
  //         import(/* webpackChunkName: "error-page" */ '@/views/error-page/404'),
  //     },
  //     {
  //       path: '/401',
  //       name: '401',
  //       component: () =>
  //         import(/* webpackChunkName: "error-page" */ '@/views/error-page/401'),
  //     },
  //   ],
  // },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes: publicRoutes,
})

export default router
